import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule} from "@angular/router";
import {navRoutes} from "./nav.routes";
import {NavComponent} from "./nav.component";
import {
  MatButtonModule,
  MatIconModule,
  MatListModule,
  MatMenuModule,
  MatSidenavModule,
  MatToolbarModule
} from "@angular/material";
import {LayoutModule} from "@angular/cdk/layout";
import {NavResolve} from "../../common/guard/nav.resolve";
import {HasRoleDirective} from "../../common/directive/has-role.directive";

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(navRoutes),
    LayoutModule,
    MatToolbarModule,
    MatButtonModule,
    MatSidenavModule,
    MatIconModule,
    MatListModule,
    MatMenuModule
  ],
  declarations: [
    NavComponent,
    HasRoleDirective
  ],
  providers:[
    NavResolve,
  ]
})
export class NavModule { }
